<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/amazeui.min.css" />
		 <link rel="stylesheet" href="css/admin.css" />
	</head>
	<body>
		<div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">仓库管理</strong><small></small></div>
      </div>

      <hr>

      <div class="am-g">
        <div class="am-u-sm-12 am-u-md-6">
          <div class="am-btn-toolbar">
            <div class="am-btn-group am-btn-group-xs">
            </div>
          </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3">
          <div class="am-input-group am-input-group-sm">
              <button type="button" class="am-btn am-btn-default" ><span class="am-icon-plus"></span><a href="#" th:href="@{http://localhost:8081/addWareDo}"> 新增</a></button>
          <span class="am-input-group-btn">
          </span>
          </div>
        </div>
      </div>
      <div class="am-g">
        <div class="am-u-sm-12">
          <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
              <thead>
              <tr>
                <th class="table-id">ID</th><th class="table-title">仓库名称</th><th class="table-type">经度</th><th class="table-author am-hide-sm-only">纬度</th><th class="table-date am-hide-sm-only">用户姓名</th><th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody>
              <tr th:each="ware:${warehouses}">

                <td th:text="${ware.getRepertoryid()}"></td>
                <td th:text="${ware.getName()}"></td>
                <td th:text="${ware.getX()}"></td>
                <td class="am-hide-sm-only" th:text="${ware.getY()}" >管理员</td>
                <td class="am-hide-sm-only" th:text="${ware.getUsernName()}" ></td>
                <td>
                  <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><a href="#" th:href="@{http://localhost:8081/updWareUserNameDo(userId=${ware.getUcid()})}">编辑</a> </button>
                      <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><a href="#" th:href="@{http://localhost:8081/delectWarehouseId(repertoryid=${ware.getRepertoryid()})}">删除</a></button>

                    </div>
                  </div>
                </td>
              </tr>
              </tbody>
            </table>
            <hr>
          </form>
        </div>

      </div>
    </div>
	</body>
</html>
